package com.antSort;

public class oneThread extends Thread {
    private String filePath;
     double cost;
    double seconds;
    ThreadGroup group;
    public oneThread(ThreadGroup group,String name) {
        super(name);
        this.group = group;
        filePath = name;
    }

    public void run() {
        data data=new data();
        try {
            System.out.println("Thread " + getName() + " is running");
            data.readFile(filePath,0);
            cplex model = new cplex(data);
            model.runModel(0);
             seconds = model.getRunTime()/ 1000.0;
             cost = model.cost;
//             System.out.println(model.DualsValue);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

}
